<template>
  <svg :style="{ width: width, height: height }">
    <use :xlink:href="prefix + 'chat'" :fill="color"></use>
  </svg>
</template>
<script setup lang="ts">
const prop = defineProps({
  //xlink:href属性值的前缀
  prefix: {
    type: String,
    default: "#icon-",
  },
  //svg矢量图的名字
  name: String,
  //svg图标的颜色
  color: {
    type: String,
    default: "",
  },
  //svg宽度
  width: {
    type: String,
    default: "16px",
  },
  //svg高度
  height: {
    type: String,
    default: "16px",
  },
});
console.log(prop.prefix);
</script>

<style scoped></style>
